<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
request.setAttribute("basePath", basePath);
String baseInfoJson= (String)request.getAttribute("baseInfoJson");
String diseaseDiagInfoJson= (String)request.getAttribute("diseaseDiagInfoJson");
%>
<link rel="stylesheet" href="${basePath}assets/bootstrap/css/bootstrap.css"/>
<link rel="stylesheet" href="${basePath}assets/css/basic.css"/>
<link rel="stylesheet" href="${basePath}assets/jquery-ui/jquery-ui.css"/>
<link rel="stylesheet" href="${basePath}assets/css/medical_record/home_page.css"/>
<script type="text/javascript" src="${basePath}assets/js/jquery/jquery.min.js"></script>
<script type="text/javascript" src="${basePath}assets/bootstrap/js/bootstrap.js"></script>
<script type="text/javascript" src="${basePath}assets/jquery-ui/jquery-ui.js"></script>
<script type="text/javascript" src="${basePath}assets/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="${basePath}assets/js/medical_record/edit_diag_info.js"></script>
<input type="hidden" id="basePath" value="${basePath }"/>
<form action="${basePath}medical_record/edit_home_page_diag"
	method="post" style="height:100%;overflow-y:auto;overflow-x:hidden;">
	<input type="hidden" id="age" name="age" value="${age}">
	<input type="hidden" id="sexName" name="sexName" value="${sexName}">
	<input type="hidden" name="visitGuid" value="${visitGuid }">
	<input type="hidden" value="0" id="diseaseDiagCount" />
	<input type="hidden" value="${basePath }" id="basePath" />
	<!-- <div style="height:822px; overflow:scroll;"> -->
		<table style="margin:0 auto;" id="diseaseDiagTable">
		
			<thead>
				<!-- <tr>
					<td colspan="9">
						<div style="float:right">
							<input type="submit" value="保存" id="zongAdd" class="btn"> <input
								type="button" value="新增" onclick="addDiseaseDiagRecord()"
								class="btn">
						</div>
					</td>
				</tr> -->
				
				<tr>
					<td class="tdLabel_4" width="12%">诊断类型</td>
					<td class="tdLabel_4" width="20%">原始描述</td>
					<td class="tdLabel_4" width="24%">疾病编码</td>
					<td class="tdLabel_4" width="11%">治疗结果</td>
					<td class="tdLabel_4" width="17%">确诊日期</td>
					<td class="tdLabel_4" width="4%">治疗天数</td>
					<td class="tdLabel_4" width="11%">手术治疗</td>
					<!-- <td class="tdLabel_4" width="3%">位序</td> -->
					<!-- <td class="tdLabel_4" width="4%">操作</td> -->
				</tr>
				</thead>
				<tbody id="div_TC">
				
				</tbody>
				<!-- <tfoot>
					<tr>
						<td align="left" class="tdLabel_8" colspan="9"></td>
					</tr>
				</tfoot> -->
		</table>
	<!-- </div> -->
	
</form>

<table hidden="true">
	<tr id="templateDiseaseDiagTr">
		<td class="tdLabel_8">
			<select disabled="disabled" name="diseaseDiagRecords[0].diagTypeCode" style="width: 100%" class="diagTypeSelect">
			</select>
			<input type="hidden" name="diseaseDiagRecords[0].diagTypeName" />
		</td>
		<td class="tdLabel_8">
			<input disabled="disabled" type="text" name="diseaseDiagRecords[0].diseaseDiagOriginalDesc" style="width: 100%" readonly="readonly">
		</td>
		<td class="tdLabel_8">
			<input  class="input_box diseaseDiagSearchInput" type="text" name="diseaseDiagRecords[0].diseaseDiagName">
			<input type="hidden" name="diseaseDiagRecords[0].diseaseDiagCode">
		</td>
		<td class="tdLabel_8">
			<select disabled="disabled" name="diseaseDiagRecords[0].treatResultCode" style="width: 100%" class="treatResultSelect">
			</select>
			<input type="hidden" name="diseaseDiagRecords[0].treatResultName">
		</td>
		<td class="tdLabel_8">
			<input disabled="disabled" class="input_box" name="diseaseDiagRecords[0].confirmedDateTime" type="text" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
		</td>
		<td class="tdLabel_8">
			<input disabled="disabled" class="input_box" type="text" name="diseaseDiagRecords[0].treatDayNumber">
		</td>
		<td class="tdLabel_8">
			<select disabled="disabled" name="diseaseDiagRecords[0].operateMarkCode" style="width: 100%" class="operateMark">
			</select>
			<input type="hidden" name="diseaseDiagRecords[0].operateMarkName">
		</td>
		<!-- <td class="tdLabel_8">
			<input disabled="disabled" class="input_box" type="text" name="diseaseDiagRecords[0].diagSortIndex">
		</td> -->
		<!-- <td class="tdLabel_8"> -->
			<!-- <a style="width: 50px;margin-right: 5px;" onclick="deleteDiseaseDiagRecord(this)" class="btn">删除</a> -->
		<!-- </td> -->
	</tr>
</table>
<script>
	$(function(){
		var baseInfoJson= <%=baseInfoJson%>;
		var diseaseDiagInfoJson= <%=diseaseDiagInfoJson%>;
		//console.log(baseInfoJson);
		//console.log(diseaseDiagInfoJson);
		initPage(baseInfoJson,diseaseDiagInfoJson);
		
		
	});
</script>